<div id="page-layout"><div id="page-content">
        <div class="no-bg-image wrapper-full" id="page-content-wrapper">
            <div class="inner-page-title">
                <h3>Thay đổi mật khẩu</h3>
            </div>

            <div class="column-content-box">
                <div class="content-box content-box-header ui-corner-all">
                    <div class="ui-state-default ui-corner-top ui-box-header">
                        <span class="ui-icon float-left ui-icon-notice"></span>
                        <?php echo Yii::t('DadminModule.msg', 'fields_required') ?>
                    </div>
                    <div class="content-box-wrapper">
                        <?php
                        $form = $this->beginWidget('CActiveForm', array(
                            'id'                     => 'users-form',
                            'enableAjaxValidation'   => true,
                            'enableClientValidation' => true,
                            'focus'                  => array($model, 'old_password'),
                            'errorMessageCssClass'   => 'error',
                            'htmlOptions'            => array(
                                'class' => 'form',
                            ),
                        ));
                        ?>
                        <fieldset>
                            <ul>
                                <li>
                                    <?php
                                    $attrName = 'old_password';
                                    echo $form->labelEx($model, $attrName, array(
                                        'class' => 'desc'
                                    ));
                                    ?>
                                    <div>
                                        <?php
                                        echo $form->passwordField($model, $attrName, array(
                                            'class' => 'text medium'));
                                        echo $form->error($model, $attrName);
                                        ?>
                                    </div>
                                </li>

                                <li>
                                    <?php
                                    $attrName = 'new_password';
                                    echo $form->labelEx($model, $attrName, array(
                                        'class' => 'desc'
                                    ));
                                    ?>
                                    <div>
                                        <?php
                                        echo $form->passwordField($model, $attrName, array(
                                            'class' => 'text medium'));
                                        echo $form->error($model, $attrName);
                                        ?>
                                    </div>
                                </li>

                                <li>
                                    <?php
                                    $attrName = 're_password';
                                    echo $form->labelEx($model, $attrName, array(
                                        'class' => 'desc'
                                    ));
                                    ?>
                                    <div>
                                        <?php
                                        echo $form->passwordField($model, $attrName, array(
                                            'class' => 'text medium'));
                                        echo $form->error($model, $attrName);
                                        ?>
                                    </div>
                                </li>

                                <!-- buttons -->
                                <li style="text-align: center;">
                                    <?php
                                    $label = Yii::t('DadminModule.app', 'save_u');
                                    echo CHtml::submitButton($label, array(
                                        'name'  => 'submit',
                                        'class' => 'ui-state-default ui-corner-all ui-button'
                                    ));
                                    
                                    $label = Yii::t('DadminModule.app', 'reset_u');
                                    echo CHtml::button($label, array(
                                        'id'    => 'btn-reset',
                                        'class' => 'ui-state-default ui-corner-all ui-button',
                                        'style' => 'margin:0 10px;',
                                    ));
                                    
                                    $label = Yii::t('DadminModule.app', 'cancel_u');
                                    echo CHtml::button($label, array(
                                        'id'    => 'btn-cancel-change',
                                        'class' => 'ui-state-default ui-corner-all ui-button'
                                    ));
                                    ?>
                                </li>
                                <!-- //buttons -->
                            </ul>
                        </fieldset>

                        <?php $this->endWidget(); ?>
                    </div>
                </div>
            </div>
        </div>
        <div class="clear"></div>
    </div></div>

<div id="null" style="display:none;"></div>
<?php $this->renderPartial('_script'); ?>